import gobject
import gtk
import gnomevfs

gobject.threads_init()

def callback(retval):
    print 'got', retval
    gtk.main_quit()

gnomevfs.file_control('fs:///', 'file:test', callback)

gtk.main()
